package com.good.shopping.order.feign;

import com.good.common.base.ServiceConstant;
import com.good.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 商品远程服务
 * @author shengren.yan
 * @create 2022-03-17
 */
@FeignClient(value = ServiceConstant.SERVICE_PRODUCT_NAME)
public interface ProductFeignService {


    /**
     * 根据skuId查询spu的信息
     * @param skuId
     * @return
     */
    @GetMapping(value = "/product/spuinfo/skuId/{skuId}")
    public R getSpuInfoBySkuId(@PathVariable("skuId") Long skuId);

}
